package com.hmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.order.pojo.Order;
import com.hmall.order.pojo.OrderDTO;

/**
 * 订单-业务层接口
 */
public interface IOrderService extends IService<Order> {
    /**
     * 下单，生成订单
     *
     * @param orderDTO 生成订单，需要的数据DTO
     * @return 生成的订单Id
     */
    Long createOrder(OrderDTO orderDTO);
}